package com.tianpengtech.showcase.common;

import org.tio.core.intf.Packet;

public class ShowcasePacket extends Packet {

	public static final int HEADER_LENGHT = 5;// 消息头的长度 1+4
	public static final String CHARSET = "utf-8";

	private byte type;
	private byte[] body;

	public ShowcasePacket() {
		super();
	}

	public ShowcasePacket(byte type, byte[] body) {
		this.type = type;
		this.body = body;
	}

	public byte getType() {
		return type;
	}

	public void setType(byte type) {
		this.type = type;
	}

	public byte[] getBody() {
		return body;
	}

	public void setBody(byte[] body) {
		this.body = body;
	}

	public String logstr() {
		return "" + type;
	}
}
